package com.cjq.pojo;

import lombok.Data;

import java.math.BigDecimal;
@Data
public class Student extends Person implements Person.Work {

    /**
     * 学号
     */
    private String stuNun;
    /**
     * 成绩
     */
    private BigDecimal score;


    @Override
    void printInfo() {
        System.out.println("Name: " + name + ", Age: " + age + ", Student Number: " + stuNum + ", Score: " + score);
    }

    @Override
    public void doWork() {
        System.out.println(name + " is studying.");
    }
}
